package com.study.controller;

import com.study.pojo.resp.ResultMessage;
import com.study.service.QuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/question")
public class QuestionController {

    @Resource
    QuestionService questionService;
    //查询所有新闻
    @RequestMapping("/findAllQuestion")
    public ResultMessage findAllBus() {
        ResultMessage allNews = questionService.findAllQuestion();
        return allNews;
    }

}
